Skip to content

Feature/8213 reranking ai prediction#281

Open
shaunahu wants to merge 5 commits into
mainfrom
feature/8213-reranking-ai-prediction
Open

Feature/8213 reranking ai prediction#281
shaunahu wants to merge 5 commits into
mainfrom
feature/8213-reranking-ai-prediction

Conversation

@shaunahu

@shaunahu shaunahu commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Prioritises matching records containing human-curated vocabulary metadata over records matched through AI-predicted vocabulary metadata (records with parameter_vocabs/platform_vocabs rank higher than records with ai:parameter_vocabs /ai:platform_vocabs)

ogc-api demo (the left side is the updated search with AI predicted parameters with reranking, the right side is the current search):
image

ES query request example:

POST /es-indexer-edge/_search?typed_keys=true {"_source":{"includes":["id"]},"query":{"bool":{"filter":[{"bool":{"filter":[{"bool":{"filter":[{"geo_bounding_box":{"summaries.proj:geometry":{"top_left":{"lat":-8.0,"lon":104.0},"bottom_right":{"lat":-43.0,"lon":163.0}}}},{"bool":{"should":[{"match_phrase":{"summaries.parameter_vocabs":{"query":"temperature"}}},{"match_phrase":{"summaries.ai:parameter_vocabs":{"query":"temperature"}}}]}}]}},{"bool":{"should":[{"match_phrase":{"summaries.platform_vocabs":{"query":"satellite"}}},{"match_phrase":{"summaries.ai:platform_vocabs":{"query":"satellite"}}},{"match_phrase":{"summaries.platform_vocabs":{"query":"glider"}}},{"match_phrase":{"summaries.ai:platform_vocabs":{"query":"glider"}}}]}}]}}],"must":[{"match_all":{}}]}},"size":800,"sort":[{"_script":{"order":"desc","script":{"source":"return doc.containsKey('summaries.platform_vocabs.keyword') && !doc['summaries.platform_vocabs.keyword'].empty ? 1 : 0;","lang":"painless"},"type":"number"}},{"_script":{"order":"desc","script":{"source":"return doc.containsKey('summaries.parameter_vocabs.keyword') && !doc['summaries.parameter_vocabs.keyword'].empty ? 1 : 0;","lang":"painless"},"type":"number"}},{"id.keyword":{"order":"asc"}}]}

@shaunahu shaunahu marked this pull request as ready for review June 12, 2026 04:21
@shaunahu shaunahu requested a review from utas-raymondng June 14, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant